
<!DOCTYPE html>
<html  xmlns:th="http://www.thymeleaf.org"
       xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="UTF-8">
    <title>Insert title here</title>
</head>
<body>
<h1>系统主页</h1>
<ul>
    <shiro:hasRole name="common" >
        <li><a href="#">用户管理</a></li>
        <ul>

            <shiro:hasPermission name="/user/save">
                <li><a href="/user/save">增加</a></li>
            </shiro:hasPermission>
            <shiro:hasPermission name="/user/delete">
            <li><a href="/user/delete">删除</a></li>
            </shiro:hasPermission>
            <shiro:hasPermission name="/user/update">
            <li><a href="/user/update">更新</a></li>
            </shiro:hasPermission>
            <shiro:hasPermission name="/user/select">
            <li><a href="/user/select">查询</a></li>
            </shiro:hasPermission>
        </ul>
    </shiro:hasRole>
    <shiro:hasRole name="admin">
        <h1>欢迎你admin</h1>
    </shiro:hasRole>

</ul>
<a href="/logout">退出登录</a>
</body>
</html>
